﻿/* ------------------------------------------------------------------------- *
 * Copyright (C) 2008-2009 Jaroslav Runcik
 *
 * Jaroslav Runcik <J [dot] Runcik [at] seznam [dot] cz>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * ------------------------------------------------------------------------- */

using System;

namespace SR.CML.Core.InSimCommon.Controls
{
	public class ButtonClickEventArgs : EventArgs
	{
		private MouseButtonAndKey _mouseButtonAndKey;
		public MouseButtonAndKey Key
		{
			get { return _mouseButtonAndKey; }
		}

		private MouseButton _mouseButton;
		public MouseButton Button
		{
			get { return _mouseButton; }
		}

		private bool _local;
		public bool Local
		{
			get { return _local; }
		}

		private IInSimDriver _inSimDriver;
		public IInSimDriver InSimDriver {
			get { return _inSimDriver; }
		}

		public ButtonClickEventArgs(MouseButton mouseButton, MouseButtonAndKey mouseButtonAndKey, bool local, IInSimDriver inSimDriver)
		{
			_mouseButton		= mouseButton;
			_mouseButtonAndKey	= mouseButtonAndKey;
			_local				= local;
			_inSimDriver		= inSimDriver;
		}
	}
}
